package com.shushan.mixedexam.readrecite.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: HearingDataBean
 * @Desciption: //阅读背诵练习数据bean
 * @author: zhangshihao
 * @date: 2018-06-20
 */
public class ReadReciteDataBean extends NetBaseBean {

    public int group;
    public double left;
    public double top;
    public int width;
    public int height;
    public double begin;
    public double end;
    public int isRecite;
    public String translate;
    public String text;//英语原文

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        if(jsonObject != null){
            group = jsonObject.optInt("group",0);
            left = jsonObject.optDouble("left",0);
            top = jsonObject.optDouble("top",0);
            width = jsonObject.optInt("width",0);
            height = jsonObject.optInt("height",0);
            begin = jsonObject.optDouble("begin",0);
            end = jsonObject.optDouble("end",0);
            isRecite = jsonObject.optInt("isRecite",0);
            translate = jsonObject.optString("translate","");
            text = jsonObject.optString("text","");
        }
    }

}
